package cn.clq.ymcc.constants;

/***
 * @description:  ymcc的全局异常枚举类
 * @param: null
 * @return:
 * @author clqlongbao
 * @date: 2022/7/19 0:38
 */
public enum YmccError {
    COMMON_MOBILE_IMAGECODE_EXPIRED("4001", "图形验证码已经过期，请重新获取"),
    COMMON_MOBILE_IMAGECODE_WRONG("4002", "图形验证码输入错误"),
    COMMON_MOBILE_SMSCODE_INTERVAL("4003", "两次发送短信验证码的时间间隔必须大于60秒"),
    COMMON_MOBILE_BLACKLIST("4004", "你已被网站拉黑，请联系客服解封"),


    USER_SMSCODE_EXPIRED("4101", "短信验证码失效！"),
    USER_SMSCODE_WRONG("4102", "短信验证码输入错误！"),
    USER_EXISTS("4103", "用户已存在！"),

    LOGIN_SAVE_FAILED("4201","登录信息保存失败"),
    LOGIN_SAVE_USER_FAILED("4202","用户保存失败");

    /**
     * 错误码
     */
    private String code;

    /**
     * 错误描述
     */
    private String message;

    YmccError(String code, String msg) {
        this.code = code;
        this.message = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
